<template>
  <view> 首页 </view>
</template>

<script lang="ts" setup>
import { onMounted, onUnmounted } from "vue";
// 引入生命周期的函数
import { onLoad, onReady, onShow, onHide, onUnload } from "@dcloudio/uni-app";

// 页面加载
onLoad((query) => {
  console.log("onLoad", query);
});

// 页面渲染完成
onReady(() => {
  console.log("onReady");
});

// 页面显示
onShow(() => {});

// 页面隐藏
onHide(() => {});

// 页面卸载
onUnload(() => {});
</script>
